/**
 * @Author Stark
 * @Date 2022/2/9 22:17
 */
public class Main {
    private String name = "张三";
    private int age = 10;
    public void show(){
        System.out.println("myname:" + name + ",myage:" + age);
    }
    public String toString(){
        return "名字：" + name + ",年龄：" + age;
    }

    public static void main(String[] args) {
        Main main = new Main();
        main.show();
        System.out.println(main);
    }
}
